<template>

 <view class="my-search-container">
 
    <view class="my-search-box" @click="gotoSearchView">
      <uni-icons type="search" color="#BCC1CF" size="17"></uni-icons>
      <text class="placeholder">搜索商品</text>
     <view class="search-btn" >
        搜索
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    name:"my-search",
    data() {
      return {
      
      };
    },
    methods:{
      gotoSearchView(){
        uni.navigateTo({
          url: '/subpkg/search_view/search_view'
        })
      },
    }
  }
</script>

<style lang="scss" >
.my-search-container {
  padding: 0 10px;
  display: flex;
  align-items: center;
  margin-top:36rpx;
  margin-bottom:40rpx;
}
.my-search-box {
  height:70rpx;
  background-color: #F5F5F5;
  border-radius:70rpx;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size:26rpx;
  position: relative;
  .placeholder {
    font-size: 26rpx;
    margin-left: 5px;
    font-family: PingFang SC;
    font-weight: 500;
    color: #BCC1CF;
  }
  .search-btn{
    width: 114rpx;
    height: 60rpx;
    line-height: 60rpx;
    text-align: center;
    border: 1px solid #FFFFFF;
    background: linear-gradient(90deg, #F75803 0%, #FFA000 100%);
    border-radius: 30rpx;
    font-size: 26rpx;
    font-family: PingFang SC;
    font-weight: 500;
    color: #FFFFFF;
    position: absolute;
    right:4px;
    top:2px;
  }
}
</style>